Paginator
└─Bootstrap
public class Bootstrap
extends Paginator
Method Summary | |
---|---|
protected string | getPreviousButton(string text) 上一页按钮 |
protected string | getNextButton(string text) 下一页按钮 |
protected string | getLinks() 页码按钮 |
mixed | render() 渲染分页html |
protected string | getAvailablePageWrapper(string url, int page) 生成一个可点击的按钮 |
protected string | getDisabledTextWrapper(string text) 生成一个禁用的按钮 |
protected string | getActivePageWrapper(string text) 生成一个激活的按钮 |
protected string | getDots() 生成省略号按钮 |
protected string | getUrlLinks(array urls) 批量生成页码按钮. |
protected string | getPageLinkWrapper(string url, int page) 生成普通页码按钮 |
Methods inherited from think\Paginator | |
---|---|
__construct, appends, buildFragment, currentPage, fragment, getCurrentPage, getCurrentPath, getUrlRange, hasPages, lastPage, listRows, make, render, setCurrentPage, total, url |
protected string getPreviousButton(string text)
上一页按钮
protected string getNextButton(string text)
下一页按钮
protected string getLinks()
页码按钮
public mixed render()
渲染分页html
protected string getAvailablePageWrapper(string url, int page)
生成一个可点击的按钮
protected string getDisabledTextWrapper(string text)
生成一个禁用的按钮
protected string getActivePageWrapper(string text)
生成一个激活的按钮
protected string getDots()
生成省略号按钮
protected string getUrlLinks(array urls)
批量生成页码按钮.
protected string getPageLinkWrapper(string url, int page)
生成普通页码按钮